<template>
  <div id="app">
    <el-container :style="wrap">
      <router-view/>
    </el-container>
  </div>
</template>
<script>
export default {
  data() {
    return {
      wrap: {
        height: ""
      }
    }
  },
  methods: {
    resize() {
      let height = document.documentElement.clientHeight;
      this.wrap.height = `${height}px`;
    }
  },
  mounted(){
    this.resize();
  }
}
</script>

<style>
*{
  margin: 0;
  padding: 0;
}
.el-header{
  background-color: #fff;
  color: #333;
  text-align: right;
  line-height: 60px;
}
.el-aside {
  background-color: #304156;
  color: #333;
  text-align: center;
}
.el-main {
  background-color: #f0f2f5;
  color: #333;
  text-align: center;
}

body > .el-container {
  margin-bottom: 40px;
}
</style>